线程不能利用多CPU问题,这是Python被人诟病最多的一个缺点,GIL即全局解释器锁(Global Interpreter Lock),是计算机程序设计语言解释器用于同步线程的工具,使得任何时刻仅有一个线程在执行,Python的线程是操作系统的原生线程。
基于158个网页-相关网页
The Global Interpreter Lock 获取全局解释器锁
以上来源于: WordNet
The global interpreter lock" is per-interpreter as its name implies, not per process;"
全球口译锁“是每口译,顾名思义,不是每个进程;
The global interpreter lock is used to protect the pointer to the current thread state.
全局解释器锁用于保护当前线程状态的指针。
The reason is the Global Interpreter Lock (GIL), sometimes referred to as Global VM Lock (GVL).
这就是全局解释锁(GIL),有时候也叫做全局VM锁(GVL)。
应用推荐